cmake_minimum_required(VERSION 3.12.4)

set(TARGET mp3Player)

project(${TARGET})

aux_source_directory(. SRCS)

include_directories(. MP3Decoder libmad/inc)

add_subdirectory(MP3Decoder)
add_subdirectory(libmad)

add_executable(${TARGET} ${SRCS})

target_link_libraries(
    ${TARGET}
    -Wl,--start-group
    MP3Decoder
    pthread
    mad
    asound
    -Wl,--end-group
)